<?php
if (!defined('THINK_PATH')) exit;
// 本文档自动生成，仅供测试运行
class showtitAction extends Action
{
    /**
    +----------------------------------------------------------
    * 默认操作
    +----------------------------------------------------------
    */
    public function index()
    {
    	$mid = getRequest('modid');
    	$modinfo = selectModel::getModInfoById($mid);
    	$content = selectModel::getModConInfoByMid($mid);
    	$aritcles = selectModel::getAritcleTitByMid($mid);
		$this->assign('titles',$aritcles);
    	$this->assign('content',$content);
    	$this->assign('modinfo',$modinfo);
    	$p = new PublicAction();
		$p->recomment();
    	$this->display();
    }
    public function dymod()
    {
    	$this->display();
    }
     /*
     +----------------------------------------------------------- 
     * 方法不存在时默认操作
     +-----------------------------------------------------------
     */
	public function _empty(){
		$this->redirect('error');
	}
	/*
     +----------------------------------------------------------- 
     * 错误操作提示
     +-----------------------------------------------------------
     */
	public function error(){
		$this->display('./Tpl/default/Index/error.html');
	}
    /**
    +----------------------------------------------------------
    * 探针模式
    +----------------------------------------------------------
    */
    public function checkEnv()
    {
        load('pointer',THINK_PATH.'/Tpl/Autoindex');//载入探针函数
        $env_table = check_env();//根据当前函数获取当前环境
        echo $env_table;
    }

}
?>